The Fireworks Integration API > The Fireworks integration API > FWLaunch.validateFireworks()

 

FWLaunch.validateFireworks()

Availability

Dreamweaver 2.0, Fireworks 2.0

Description

Looks for the specified version of Fireworks on the user's hard disk.

Arguments

{versionNumber}

The argument is a floating-point number greater than or equal to 2.0; it represents the version of Fireworks that should be searched for. If this argument is omitted, the default is 2.0.

Returns

A Boolean value indicating whether the specified version of Fireworks was found.

Example

The following code checks whether Fireworks 3.0 is installed:

if (FWLaunch.validateFireworks(3.0)){
	alert( "Fireworks 3.0 is installed.");
}else{
	alert( "Fireworks 3.0 is not installed.");
}